.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.search-image {
    max-width: 200px;
    height: 200px;
    object-fit: fill;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.search-result span {
    margin-left: 10px;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3; /* 浅灰色边框 */
    border-top: 6px solid #3498db; /* 蓝色的顶部边 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* 更清爽的背景颜色 */
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase; /* 更现代的标题 */
}

.header .actions button {
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.header .actions button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* 按钮悬停动画 */
}

.form-group {
    display: flex;
    gap: 20px; /* 控制三个输入框之间的间距 */
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #555;
}
.form-item {
    flex: 1;
}
.form-group input, .form-group button {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus, .form-group button:focus {
    border-color: #007bff;
    outline: none;
    background-color: #e6f0ff; /* 聚焦时输入框颜色变换 */
}

button {
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

button:not(:disabled):hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* 按钮悬停动画 */
}

.image-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.image-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.image-list li:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-list img {
    width: 300px;
    height: auto;
    object-fit: contain; /* ✅ 拉伸变形填满 */
    border-radius: 8px;
    margin-right: 50px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.pagination button:not(:disabled):hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.image-actions button {
    padding: 5px 10px; /* 设置按钮的内边距 */
    font-size: 14px; /* 设置字体大小 */
    cursor: pointer; /* 鼠标悬浮时显示手型 */
}
#top-action-bar {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px;
    z-index: 998;
    border-bottom: 1px solid #ddd;
}
.loading-text {
    margin-top: 12px;
    font-size: 16px;
    color: #fff;
    text-align: center;
}
